//parent//
base
//current_menu_item//
list_products
//content//
<?php
require_once 'helpers/url_helper.php'
?>
<table>
    <tr>
        <td>
            <ul>
                <?php foreach ($categories as $c) {
 ?>
                    <li>
                        <?php if ($c['parent_id']==0) { ?>
                        <a href="<?=  get_url('', 'list', array('category' => $c['id']))?>"><b><?=$c['name']?></b></a>
                        <?php } else { ?>
                        <a href="<?=  get_url('', 'list', array('category' => $c['id']))?>"><?=$c['name']?></a>
                        <?php } ?>
                    </li>
<?php } ?>
            </ul>
        </td>
        <td>
            <table>
                <tr>
                    <th>Name</th>
                    <th>Code</th>
                    <th>Small description</th>
                    <th>Full description</th>
                </tr>
<?php foreach ($products as $p) { ?>
                    <tr>
                        <td><?= $p['name'] ?></td>
                        <td><?= $p['code'] ?></td>
                        <td><?= $p['small_desc'] ?></td>
                        <td><?= $p['full_desc'] ?></td>
                    </tr>
<?php } ?>
            </table>
        </td>
    </tr>
</table>